package com.bing;

import cn.org.atool.fluent.mybatis.spring.MapperFactory;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication
@EnableScheduling
@MapperScan("com.bing.**.mapper")
public class BingProApplication {

    @Bean
    public MapperFactory mapperFactory() {
        return new MapperFactory();
    }

    public static void main(String[] args) {
        SpringApplication.run(BingProApplication.class, args);
    }

}
